// props
// import { useEffect, useState } from "react";

function Son (props) {
  console.log(props);
  
  return (
    <div>
      this is son
      <h1>{props.name}</h1>
      {props.tag}
    </div>
  )
}
function App() {
  const name = "张三";

  return (
    <div>
      <Son 
      name={name}
      age={18}
      colors={['react', 'vue']}
      tag={<h1>这是一个标签</h1>}
      />
    </div>
  )
}
export default App; 